<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
  'id'=>'orders-form',
  'enableAjaxValidation'=>false,
  'htmlOptions'=>array('enctype' => 'multipart/form-data')
)); ?>

  <p class="note">Fields with <span class="required">*</span> are required.</p>

  <?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name', array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model, 'name'); ?>
	</div>  

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email', array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model, 'email'); ?>
	</div>   

	<div class="row">
		<?php echo $form->labelEx($model,'tel'); ?>
		<?php echo $form->textField($model,'tel', array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model, 'tel'); ?>
	</div>   

	<div class="row">
		<?php echo $form->labelEx($model,'message'); ?>
		<?php echo $form->textArea($model,'message',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model, 'message'); ?>
	</div>  
	
	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->dropDownList($model,'status', array('N' => 'New Order', 'P' => 'Payment Completed', 'C' => 'Canceled')); ?>
		<?php echo $form->error($model, 'status'); ?>
	</div> 	
  
  <div class="row buttons">
    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
  </div>

<?php $this->endWidget(); ?>

</div><!-- form -->